/**
 * $Id: CourseBuilder.java,v 1.0 2022/6/6 23:04 shidesheng Exp $
 * <p>
 * Copyright 2021 Sinosoft Co.,Ltd. All rights reserved.
 */
package sds.mode.builder.chain;

/**
 * @author shidesheng
 * @version $Id: CourseBuilder.java,v 1.1 2022/6/6 23:04 shidesheng Exp $
 * Created on 2022/6/6 23:04
 */
public class CourseBuilder {

	private Course course = new Course();

	public CourseBuilder addName(String name){
		course.setName(name);
		return this;
	}

	public CourseBuilder addPPT(String ppt){
		course.setPpt(ppt);
		return this;
	}

	public CourseBuilder addVideo(String video){
		course.setVideo(video);
		return this;
	}

	public CourseBuilder addNote(String note){
		course.setNote(note);
		return this;
	}

	public CourseBuilder addHomework(String homework){
		course.setHomework(homework);
		return this;
	}

	public Course builder(){
		return course;
	}

}
